package com.wedata.海康云;

import cn.hutool.json.JSONObject;
import com.wedata.HttpUtils;

/**
 * https://help.hikyun.com/document/1706081683215272/1671258273323409/0
 */
public class 消息订阅 extends BaseService{

    public static void main(String[] args) {
        String url = "https://open.hikyun.com/artemis/api/eits/v1/global/sub/add";
        JSONObject header = new JSONObject("{\"access_token\":\""+getToken()+"\"}");
        JSONObject param = new JSONObject();
        param.set("projectId",projectId);
        param.set("name","健萌人脸识别事件");
        param.set("password","s19o2bp2dgbgnanq");
        JSONObject jsonObject = HttpUtils.sendPost(url,header,param);
    }
}
